package com.jerry.chinesechess.model;

import lombok.Data;

@Data
public class Position {

    private int row;
    private int col;

    public Position(int row, int col) {
        this.row = row;
        this.col = col;
    }

    public boolean equals(Position other) {
        return row == other.row && col == other.col;
    }
}
